extends basic
block header
    style.
        body {padding-top: 0px;}
block content
    div(class="page-header")
        h1 欢迎使用PowerTeam安装向导 <small>any where any time any device</small>
    div(class="container")
        form(novalidate ng-controller="InstallCtrl" name="installForm")
            fieldset(ng-disabled="processing")
                div(class="panel panel-success")
                    div(class="panel-heading")
                        h3(class="panel-title") 数据库配置
                    div(class="panel-body")
                        div(class="form-group")
                            label(for="MySqlHost") <h4>MySql服务器 <small>例如localhost</small></h4>
                            input(type="text" class="form-control" ng-model="Config.MySqlHost" name="MySqlHost" id="MySqlHost" placeholder="localhost" required)
                            div(ng-show="installForm.MySqlHost.$dirty&&installForm.MySqlHost.$error.required" class="text-danger") 请输入MySql服务器
                        div(class="form-group")
                            label(for="MySqlPort") <h4>MySql服务器端口 <small>例如3306</small></h4>
                            input(type="text" class="form-control" ng-model="Config.MySqlPort" name="MySqlPort" id="MySqlPort" placeholder="3306" required)
                            div(ng-show="installForm.MySqlPort.$dirty&&installForm.MySqlPort.$error.required" class="text-danger") 请输入MySql服务器端口
                        div(class="form-group")
                            label(for="MySqlDatabase") <h4>MySql数据库 <small>例如powerteam</small></h4>
                            input(type="text" class="form-control" ng-model="Config.MySqlDatabase" name="MySqlDatabase" id="MySqlDatabase" placeholder="powerteam" required)
                            div(ng-show="installForm.MySqlDatabase.$dirty&&installForm.MySqlDatabase.$error.required" class="text-danger") 请输入MySql数据库
                        div(class="form-group")
                            label(for="MySqlUser") <h4>MySql用户名 <small>例如root</small></h4>
                            input(type="text" class="form-control" ng-model="Config.MySqlUser" name="MySqlUser" id="MySqlUser" placeholder="root" required)
                            div(ng-show="installForm.MySqlUser.$dirty&&installForm.MySqlUser.$error.required" class="text-danger") 请输入MySql用户名
                        div(class="form-group")
                            label(for="MySqlPass") <h4>MySql密码 <small>例如1111</small></h4>
                            input(type="text" class="form-control" ng-model="Config.MySqlPass" name="MySqlPass" id="MySqlPass")
                div(class="panel panel-success")
                    div(class="panel-heading")
                        h3(class="panel-title") 默认管理员帐号配置
                    div(class="panel-body")
                        div(class="form-group")
                            label(for="AdminEmail") <h4>系统管理员帐号 <small>例如admin@admin.com</small></h4>
                            input(type="email" class="form-control" ng-model="Config.AdminEmail" name="AdminEmail" id="AdminEmail" placeholder="admin@admin.com" required)
                            div(ng-show="installForm.AdminEmail.$dirty&&installForm.AdminEmail.$error.required" class="text-danger") 请输入系统管理员帐号
                        div(class="form-group")
                            label(for="AdminPass") <h4>系统管理员密码 <small>例如admin</small></h4>
                            input(type="text" class="form-control" ng-model="Config.AdminPass" name="AdminPass" id="AdminPass" placeholder="admin" required)
                            div(ng-show="installForm.AdminPass.$dirty&&installForm.AdminPass.$error.required" class="text-danger") 请输入系统管理员密码
                div(class="alert alert-danger" ng-show="errorMsg") {{errorMsg}}
                button(type="button",class="btn btn-success",ng-click="runInstall()",data-loading-text="正在注册",ng-disabled="installForm.$invalid") 安装